<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script>
    //sys_user_role 添加或者修改
    var params = {
        "id": 1,
        "user_id": {
            "value": 1,
            "subFieldValue": {
                "user_id": 1,
                "username": "admin",
                "password": "9ec9750e709431dad22365cabc5c625482e574c74adaebba7dd02f1129e4ce1d",
                "salt": "YzcmCZNvbXocrsz9dm8e",
                "email": "root@renren.io",
                "mobile": "13612345678",
                "status": 1,
                "create_user_id": 1,
                "create_time": "2016-11-11T03:11:11.000Z"
            }
        },
        "role_id": {
            "value": 1,
            "subFieldValue": {
                "role_id": 1,
                "role_name": "老板",
                "remark": null,
                "create_user_id": null,
                "create_time": null
            }
        }
    }
    axios.post('/sys_user_role/add', params).then(res => res.data).then(res => {
        console.log(res)
    })

    //sys_user_role 分页或者查询列表 <br/>
    var params = {
        "pageNum": 0,
        "pageSize": 1
    }
    axios.get('/sys_user_role/page', {params: params}).then(res => res.data).then(res => {
        console.log(res)
    })
</script>

